//
//  AppDelegate.m
//  PywCommonSDKDemo
//
//  Created by Ampaw on 2017/8/10.
//  Copyright © 2017年 Ampaw. All rights reserved.
//

#import "AppDelegate.h"
#import <PywCommonSDK/PywCommonSDK.h>
@interface AppDelegate ()

@end

@implementation AppDelegate

//- (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
//{
//    return UIInterfaceOrientationMaskAll;
//}


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    return YES;
}


- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
  sourceApplication:(NSString *)sourceApplication
         annotation:(id)annotation {
    [PywCommonSDKApi commonSdk_OpenUrl:url];
    return YES;
}
// NOTE: 9.0以后使用新API接口
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options {
   
    [PywCommonSDKApi commonSdk_OpenUrl:url];
    return YES;
}
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
    
    [PywCommonSDKApi commonSdk_OpenUrl:url];
    return YES;//第三方URL处理
}

@end
